import request from '@/utils/request.js'
// 获取所有权限点
export function sysPermission() {
  return request({ url: '/sys/permission' })
}
// 删除权限点
export function sysPermissionDel(id) {
  return request({ url: '/sys/permission/' + id, method: 'delete' })
}
// 添加权限点
export function sysPermissionPost(data) {
  return request({ url: '/sys/permission', method: 'post', data })
}
// 更新权限点
export function sysPermissionPut(data) {
  return request({ url: '/sys/permission/' + data.id, method: 'put', data })
}
